.class Lrexsee/core/browser/Browser$3;
.super Lrexsee/core/browser/clazz/LoadingProgressListeners$LoadingProgressListener;
.source "Browser.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/core/browser/Browser;-><init>(Landroid/content/Context;Lrexsee/core/browser/Browser;Lrexsee/core/widget/Div;Lrexsee/core/browser/clazz/BrowserParent;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/core/browser/Browser;

.field private final synthetic val$cancelRunnable:Ljava/lang/Runnable;

.field private final synthetic val$timeout:I

.field private final synthetic val$timeoutRunnable:Ljava/lang/Runnable;


# direct methods
.method constructor <init>(Lrexsee/core/browser/Browser;ILjava/lang/Runnable;Ljava/lang/Runnable;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/core/browser/Browser$3;->this$0:Lrexsee/core/browser/Browser;

    iput p2, p0, Lrexsee/core/browser/Browser$3;->val$timeout:I

    iput-object p3, p0, Lrexsee/core/browser/Browser$3;->val$timeoutRunnable:Ljava/lang/Runnable;

    iput-object p4, p0, Lrexsee/core/browser/Browser$3;->val$cancelRunnable:Ljava/lang/Runnable;

    .line 147
    invoke-direct {p0}, Lrexsee/core/browser/clazz/LoadingProgressListeners$LoadingProgressListener;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lrexsee/core/browser/Browser$3;)Lrexsee/core/browser/Browser;
    .locals 1

    .prologue
    .line 147
    iget-object v0, p0, Lrexsee/core/browser/Browser$3;->this$0:Lrexsee/core/browser/Browser;

    return-object v0
.end method


# virtual methods
.method public run(Landroid/content/Context;Lrexsee/core/browser/Browser;I)V
    .locals 6
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "browser"    # Lrexsee/core/browser/Browser;
    .param p3, "progress"    # I

    .prologue
    .line 150
    iget-object v0, p0, Lrexsee/core/browser/Browser$3;->this$0:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v0, v0, Lrexsee/core/style/StyleSheet;->browser_progress_dialog:Ljava/lang/String;

    const-string v1, "hidden"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 151
    const/16 v0, 0x64

    if-ne p3, v0, :cond_1

    .line 152
    iget-object v0, p0, Lrexsee/core/browser/Browser$3;->this$0:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->progressDialog:Lrexsee/core/progress/RexseeProgressDialog;

    invoke-virtual {v0}, Lrexsee/core/progress/RexseeProgressDialog;->hide()V

    .line 153
    iget-object v0, p0, Lrexsee/core/browser/Browser$3;->this$0:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->progressCover:Lrexsee/core/progress/RexseeProgressCover;

    invoke-virtual {v0}, Lrexsee/core/progress/RexseeProgressCover;->hide()V

    .line 154
    iget-object v0, p0, Lrexsee/core/browser/Browser$3;->this$0:Lrexsee/core/browser/Browser;

    const/4 v1, 0x0

    iput-boolean v1, v0, Lrexsee/core/browser/Browser;->isLaunching:Z

    .line 155
    iget-object v0, p0, Lrexsee/core/browser/Browser$3;->this$0:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->function:Lrexsee/core/browser/RexseeBrowser;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lrexsee/core/browser/RexseeBrowser;->setFocusable(Z)V

    .line 171
    :cond_0
    :goto_0
    return-void

    .line 157
    :cond_1
    iget-object v0, p0, Lrexsee/core/browser/Browser$3;->this$0:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->parentBrowser:Lrexsee/core/browser/Browser;

    if-nez v0, :cond_2

    iget-object v0, p0, Lrexsee/core/browser/Browser$3;->this$0:Lrexsee/core/browser/Browser;

    iget-boolean v0, v0, Lrexsee/core/browser/Browser;->isLaunching:Z

    if-eqz v0, :cond_2

    iget-object v0, p0, Lrexsee/core/browser/Browser$3;->this$0:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v0, v0, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-boolean v0, v0, Lrexsee/core/application/Resource;->progressCover:Z

    if-eqz v0, :cond_2

    .line 158
    iget-object v0, p0, Lrexsee/core/browser/Browser$3;->this$0:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->progressCover:Lrexsee/core/progress/RexseeProgressCover;

    new-instance v1, Ljava/lang/StringBuilder;

    iget-object v2, p0, Lrexsee/core/browser/Browser$3;->this$0:Lrexsee/core/browser/Browser;

    iget-object v2, v2, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v2, v2, Lrexsee/core/application/RexseeApplication;->label:Ljava/lang/String;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    sget-object v2, Lrexsee/core/lang/RexseeLanguage;->PROGRESS_STARTING:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "%"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    iget v3, p0, Lrexsee/core/browser/Browser$3;->val$timeout:I

    iget-object v4, p0, Lrexsee/core/browser/Browser$3;->val$timeoutRunnable:Ljava/lang/Runnable;

    iget-object v5, p0, Lrexsee/core/browser/Browser$3;->val$cancelRunnable:Ljava/lang/Runnable;

    move v1, p3

    invoke-virtual/range {v0 .. v5}, Lrexsee/core/progress/RexseeProgressCover;->showWithRunnable(ILjava/lang/String;ILjava/lang/Runnable;Ljava/lang/Runnable;)V

    goto :goto_0

    .line 160
    :cond_2
    iget-object v0, p0, Lrexsee/core/browser/Browser$3;->this$0:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->progressDialog:Lrexsee/core/progress/RexseeProgressDialog;

    new-instance v1, Ljava/lang/StringBuilder;

    sget-object v2, Lrexsee/core/lang/RexseeLanguage;->PROGRESS_ONGOING:Ljava/lang/String;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "% "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    new-instance v2, Lrexsee/core/browser/Browser$3$1;

    invoke-direct {v2, p0, p1}, Lrexsee/core/browser/Browser$3$1;-><init>(Lrexsee/core/browser/Browser$3;Landroid/content/Context;)V

    invoke-virtual {v0, v1, v2}, Lrexsee/core/progress/RexseeProgressDialog;->showWithRunnable(Ljava/lang/String;Ljava/lang/Runnable;)V

    goto :goto_0
.end method
